<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>

</body>
</html>
<script>
    //字面量的方式
    var box = [1,"老王","老宋",true,undefined,6,8];
    //new操作符的方式
    var box1 = new Array("老王","老宋","hello",123);
    alert(box1[1]);
    alert(box[1]);
</script>   